import Head from "next/head";
import React from "react";
import getConfig from "next/config";
const { publicRuntimeConfig } = getConfig();
/**
 * html的头部信息
 */
const HtmlHead = ({ title = "标题", bodyBgColor = "#f8f8f8" }) => {
  return (
    <Head>
      <title>{title}</title>
      <link rel="icon" type="image/png" href={`${publicRuntimeConfig.basePath + '/favicon.ico'}`} />
      <script type="text/javascript" src="https://ssl.captcha.qq.com/TCaptcha.js"></script>
      <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"></meta>
    </Head>
  );
};

export default HtmlHead;